package com.jye.rseven.user.mapper;

import com.jye.rseven.domain.Videos;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface VideoMapper{

    List<Videos> findVideosByPIdAndStatus(@Param("pId")int pId, @Param("status")int status);

    void addVideo(@Param("videos")Videos videos);

    void updateVideo(@Param("videos")Videos videos);

    List<Videos> findAllVideos();

    Videos findVideoById(@Param("id")int id);
}
